package com.darkevil.jdspider.mapper

import com.darkevil.jdspider.entity.Category
import org.apache.ibatis.annotations.Param
import org.springframework.stereotype.Component

@Component
interface CategoryMapper {
    fun replace(category: Category): Int

    fun batchReplace(categoryList: MutableList<Category>): Int

    fun getCategoryById(@Param("id") id: String): Category?
    
    fun dbkeeper()
}